﻿<?php
	require_once("../connectMysql/connetMysql.class.php");
	$page = intval($_GET['page']); //获取请求的页数 
	$item=6;
	if(!empty($page))
	{
	$user = array('注册会员','技术','设计','产品','打杂','运营','投资人'); 
	$start = $page*$item;
	$db=new connetMysql;
	$con=$db->getConnect();
	$chk_sql="SELECT UserId,UserImg,UserName,UserTypeId,UserDescri FROM user order by UserId desc limit $start,$item";		
	$result=$con->query($chk_sql);
	while ($row = mysqli_fetch_assoc($result))
	{
		$arr[] = array( 
		'UserId'=>$row['UserId'], 
		'UserImg'=>$row['UserImg'], 
		'UserName'=>$row['UserName'], 
		'UserType'=>$user[$row['UserTypeId']],
		'UserDescri'=>$row['UserDescri']
 		 ); 
	}
	echo json_encode($arr); 
	$con->close(); 
	}
?>